package telas.componentes;
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;
import telas.componentes.Botao;
import telas.componentes.Painel;


public class BarraOperacoesTela extends Painel
{
	private static final long serialVersionUID = 6404540698212558158L;
	private Painel pnlBotoes;
	private Botao btFechar;
	private Botao btSalvar;
	
	public BarraOperacoesTela()
	{
		initGUI();
	}

	private void initGUI() {
		try {
			{
				this.setPreferredSize(new java.awt.Dimension(388, 29));
				this.setEnabled(false);
				this.setBorder(BorderFactory.createEtchedBorder(BevelBorder.RAISED));
				BorderLayout thisLayout = new BorderLayout();
				this.setLayout(thisLayout);
				this.setSize(242, 27);
				{
					pnlBotoes = new Painel();
					BorderLayout pnlBotoesLayout = new BorderLayout();
					pnlBotoes.setLayout(pnlBotoesLayout);
					this.add(pnlBotoes, BorderLayout.EAST);
					pnlBotoes.setPreferredSize(new java.awt.Dimension(177, 23));
					{
						btSalvar = new Botao();
						pnlBotoes.add(btSalvar, BorderLayout.WEST);
						btSalvar.setText("Salvar");
						btSalvar.setPreferredSize(new java.awt.Dimension(85, 23));
					}
					{
						btFechar = new Botao();
						pnlBotoes.add(btFechar, BorderLayout.EAST);
						btFechar.setText("Cancelar");
						btFechar.setPreferredSize(new java.awt.Dimension(87, 23));
					}
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public Botao getBtSalvar()
	{
		return btSalvar;
	}
	
	public Botao getBtFechar()
	{
		return btFechar;
	}

}
